package com.paic.mhis.hcpms.assessment.dto;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.paic.mhis.common.base.dto.BaseDTO;
import com.paic.mhis.hcpms.assessment.common.AssessmentConstants;
import com.paic.mhis.hcpms.assessment.util.AssessmentUtils;

/**
 * 
 * Description: 查询指标信息
 * 
 * @author: EX-HUANGJUN003
 * @version:
 */
public class PerformanceDataDTO extends BaseDTO {

	private static final long serialVersionUID = -1967440613474749388L;

	private BigDecimal value;

	private String sourceType;

	private String evaluationMethod;

	private String unit;

	private BigDecimal indicatorValue;

	private BigDecimal lowerLimit;

	private BigDecimal upperLimit;

	private String standardType;

	private String indicatorCode;

	private String providerCode;

	private String period;

	private String kpiTime;

	private String regionCode;

	private String visitType;

	private String structureNo;

	private String indicatorName;

	private String indicatorLevel;

	private String degaultPcode;

	private BigDecimal structureScore;

	private BigDecimal fullMark;

	private BigDecimal percentScore;

	private List<PerformanceDataDTO> list;

	private String sourceType1;

	private BigDecimal indicatorValue1;

	private BigDecimal lowerLimit1;

	private BigDecimal upperLimit1;

	private String indicatorCode1;

	private String indicatorCode2;

	private String indicatorCode3;

	private String name1;

	private BigDecimal score1;

	private BigDecimal percentScore1;

	private String standardType1;

	private String visitType1;

	private BigDecimal thirdScore1;

	private BigDecimal fullMark1;

	private String unit1;

	private BigDecimal value1;

	private String evaluationMethod1;

	private String sourceType2;

	private BigDecimal indicatorValue2;

	private BigDecimal lowerLimit2;

	private BigDecimal upperLimit2;

	private String name2;

	private BigDecimal score2;

	private BigDecimal percentScore2;

	private String visitType2;

	private BigDecimal thirdScore2;

	private BigDecimal fullMark2;

	private String standardType2;

	private String unit2;

	private BigDecimal value2;

	private String evaluationMethod2;

	private BigDecimal indicatorValue3;

	private BigDecimal lowerLimit3;

	private BigDecimal upperLimit3;

	private String name3;

	private BigDecimal score3;

	private BigDecimal percentScore3;

	private String sourceType3;

	private String visitType3;

	private BigDecimal thirdScore3;

	private BigDecimal fullMark3;

	private String standardType3;

	private String unit3;

	@Override
	public String toString() {
		return "PerformanceDataDTO [value=" + value + ", evaluationMethod="
				+ evaluationMethod + ", unit=" + unit + ", indicatorValue="
				+ indicatorValue + ", lowerLimit=" + lowerLimit
				+ ", upperLimit=" + upperLimit + ", standardType="
				+ standardType + ", indicatorCode=" + indicatorCode
				+ ", providerCode=" + providerCode + ", period=" + period
				+ ", kpiTime=" + kpiTime + ", regionCode=" + regionCode
				+ ", visitType=" + visitType + ", structureNo=" + structureNo
				+ ", indicatorName=" + indicatorName + ", indicatorLevel="
				+ indicatorLevel + ", degaultPcode=" + degaultPcode
				+ ", sourceType=" + sourceType + ", structureScore="
				+ structureScore + ", fullMark=" + fullMark + ", percentScore="
				+ percentScore + ", list=" + list + ", indicatorValue1="
				+ indicatorValue1 + ", lowerLimit1=" + lowerLimit1
				+ ", upperLimit1=" + upperLimit1 + ", indicatorCode1="
				+ indicatorCode1 + ", indicatorCode2=" + indicatorCode2
				+ ", indicatorCode3=" + indicatorCode3 + ", name1=" + name1
				+ ", score1=" + score1 + ", percentScore1=" + percentScore1
				+ ", sourceType1=" + sourceType1 + ", standardType1="
				+ standardType1 + ", visitType1=" + visitType1
				+ ", thirdScore1=" + thirdScore1 + ", fullMark1=" + fullMark1
				+ ", unit1=" + unit1 + ", value1=" + value1
				+ ", evaluationMethod1=" + evaluationMethod1
				+ ", indicatorValue2=" + indicatorValue2 + ", lowerLimit2="
				+ lowerLimit2 + ", upperLimit2=" + upperLimit2 + ", name2="
				+ name2 + ", score2=" + score2 + ", percentScore2="
				+ percentScore2 + ", sourceType2=" + sourceType2
				+ ", visitType2=" + visitType2 + ", thirdScore2=" + thirdScore2
				+ ", fullMark2=" + fullMark2 + ", standardType2="
				+ standardType2 + ", unit2=" + unit2 + ", value2=" + value2
				+ ", evaluationMethod2=" + evaluationMethod2
				+ ", indicatorValue3=" + indicatorValue3 + ", lowerLimit3="
				+ lowerLimit3 + ", upperLimit3=" + upperLimit3 + ", name3="
				+ name3 + ", score3=" + score3 + ", percentScore3="
				+ percentScore3 + ", sourceType3=" + sourceType3
				+ ", visitType3=" + visitType3 + ", thirdScore3=" + thirdScore3
				+ ", fullMark3=" + fullMark3 + ", standardType3="
				+ standardType3 + ", unit3=" + unit3 + "]";
	}

	public BigDecimal getValue() {
		return value;
	}

	public void setValue(BigDecimal value) {
		this.value = AssessmentUtils.decimalToDecimal(value);
	}

	public BigDecimal getValue1() {
		return value1;
	}

	public void setValue1(BigDecimal value1) {
		this.value1 = AssessmentUtils.decimalToDecimal(value1);
	}

	public BigDecimal getValue2() {
		return value2;
	}

	public void setValue2(BigDecimal value2) {
		this.value2 = AssessmentUtils.decimalToDecimal(value2);
	}

	public String getEvaluationMethod1() {
		return evaluationMethod1;
	}

	public void setEvaluationMethod1(String evaluationMethod1) {
		this.evaluationMethod1 = evaluationMethod1;
	}

	public String getEvaluationMethod2() {
		return evaluationMethod2;
	}

	public void setEvaluationMethod2(String evaluationMethod2) {
		this.evaluationMethod2 = evaluationMethod2;
	}

	public String getEvaluationMethod() {
		return evaluationMethod;
	}

	public void setEvaluationMethod(String evaluationMethod) {
		this.evaluationMethod = evaluationMethod;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getUnit1() {
		return unit1;
	}

	public void setUnit1(String unit1) {
		this.unit1 = unit1;
	}

	public String getUnit2() {
		return unit2;
	}

	public void setUnit2(String unit2) {
		this.unit2 = unit2;
	}

	public String getUnit3() {
		return unit3;
	}

	public void setUnit3(String unit3) {
		this.unit3 = unit3;
	}

	public BigDecimal getIndicatorValue1() {
		return indicatorValue1;
	}

	public void setIndicatorValue1(BigDecimal indicatorValue1) {
		this.indicatorValue1 = AssessmentUtils
				.decimalToDecimal(indicatorValue1);
	}

	public BigDecimal getLowerLimit1() {
		return lowerLimit1;
	}

	public void setLowerLimit1(BigDecimal lowerLimit1) {
		this.lowerLimit1 = AssessmentUtils.decimalToDecimal(lowerLimit1);
	}

	public BigDecimal getUpperLimit1() {
		return upperLimit1;
	}

	public void setUpperLimit1(BigDecimal upperLimit1) {
		this.upperLimit1 = AssessmentUtils.decimalToDecimal(upperLimit1);
	}

	public BigDecimal getIndicatorValue2() {
		return indicatorValue2;
	}

	public void setIndicatorValue2(BigDecimal indicatorValue2) {
		this.indicatorValue2 = AssessmentUtils
				.decimalToDecimal(indicatorValue2);
	}

	public BigDecimal getLowerLimit2() {
		return lowerLimit2;
	}

	public void setLowerLimit2(BigDecimal lowerLimit2) {
		this.lowerLimit2 = AssessmentUtils.decimalToDecimal(lowerLimit2);
	}

	public BigDecimal getUpperLimit2() {
		return upperLimit2;
	}

	public void setUpperLimit2(BigDecimal upperLimit2) {
		this.upperLimit2 = AssessmentUtils.decimalToDecimal(upperLimit2);
	}

	public BigDecimal getIndicatorValue3() {
		return indicatorValue3;
	}

	public void setIndicatorValue3(BigDecimal indicatorValue3) {
		this.indicatorValue3 = AssessmentUtils
				.decimalToDecimal(indicatorValue3);
	}

	public BigDecimal getLowerLimit3() {
		return lowerLimit3;
	}

	public void setLowerLimit3(BigDecimal lowerLimit3) {
		this.lowerLimit3 = AssessmentUtils.decimalToDecimal(lowerLimit3);
	}

	public BigDecimal getUpperLimit3() {
		return upperLimit3;
	}

	public void setUpperLimit3(BigDecimal upperLimit3) {
		this.upperLimit3 = AssessmentUtils.decimalToDecimal(upperLimit3);
	}

	public BigDecimal getLowerLimit() {
		return lowerLimit;
	}

	public void setLowerLimit(BigDecimal lowerLimit) {
		this.lowerLimit = AssessmentUtils.decimalToDecimal(lowerLimit);
	}

	public BigDecimal getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(BigDecimal upperLimit) {
		this.upperLimit = AssessmentUtils.decimalToDecimal(upperLimit);
	}

	public String getStandardType() {
		return standardType;
	}

	public void setStandardType(String standardType) {
		this.standardType = standardType;
	}

	public String getIndicatorCode() {
		return indicatorCode;
	}

	public void setIndicatorCode(String indicatorCode) {
		this.indicatorCode = indicatorCode;
	}

	public String getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(String providerCode) {
		this.providerCode = providerCode;
	}

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getKpiTime() {
		return kpiTime;
	}

	public void setKpiTime(String kpiTime) {
		this.kpiTime = kpiTime;
	}

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getVisitType() {
		return visitType;
	}

	public void setVisitType(String visitType) {
		this.visitType = visitType;
	}

	public String getStructureNo() {
		return structureNo;
	}

	public void setStructureNo(String structureNo) {
		this.structureNo = structureNo;
	}

	public String getIndicatorName() {
		return indicatorName;
	}

	public void setIndicatorName(String indicatorName) {
		this.indicatorName = indicatorName;
	}

	public String getIndicatorLevel() {
		return indicatorLevel;
	}

	public void setIndicatorLevel(String indicatorLevel) {
		this.indicatorLevel = indicatorLevel;
	}

	public String getDegaultPcode() {
		return degaultPcode;
	}

	public void setDegaultPcode(String degaultPcode) {
		this.degaultPcode = degaultPcode;
	}

	public String getSourceType() {
		return sourceType;
	}

	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}

	public BigDecimal getIndicatorValue() {

		return indicatorValue;
	}

	public void setIndicatorValue(BigDecimal indicatorValue) {
		// if (!StringUtils.equals(this.sourceType,
		// AssessmentConstants.SOURCE_TYPE3)) {
		// this.indicatorValue = AssessmentUtils
		// .decimalToDecimal(indicatorValue);
		// } else {
		// this.indicatorValue = indicatorValue;
		// }
		this.indicatorValue = indicatorValue;

	}

	public List<PerformanceDataDTO> getList() {
		return list;
	}

	public void setList(List<PerformanceDataDTO> list) {
		this.list = list;
	}

	public String getIndicatorCode1() {
		return indicatorCode1;
	}

	public void setIndicatorCode1(String indicatorCode1) {
		this.indicatorCode1 = indicatorCode1;
	}

	public String getIndicatorCode2() {
		return indicatorCode2;
	}

	public void setIndicatorCode2(String indicatorCode2) {
		this.indicatorCode2 = indicatorCode2;
	}

	public String getIndicatorCode3() {
		return indicatorCode3;
	}

	public void setIndicatorCode3(String indicatorCode3) {
		this.indicatorCode3 = indicatorCode3;
	}

	public String getName1() {
		return name1;
	}

	public void setName1(String name1) {
		this.name1 = name1;
	}

	public String getSourceType1() {
		return sourceType1;
	}

	public void setSourceType1(String sourceType1) {
		this.sourceType1 = sourceType1;
	}

	public String getStandardType1() {
		return standardType1;
	}

	public void setStandardType1(String standardType1) {
		this.standardType1 = standardType1;
	}

	public String getVisitType1() {
		return visitType1;
	}

	public void setVisitType1(String visitType1) {
		this.visitType1 = visitType1;
	}

	public String getName2() {
		return name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}

	public String getSourceType2() {
		return sourceType2;
	}

	public void setSourceType2(String sourceType2) {
		this.sourceType2 = sourceType2;
	}

	public String getVisitType2() {
		return visitType2;
	}

	public void setVisitType2(String visitType2) {
		this.visitType2 = visitType2;
	}

	public String getStandardType2() {
		return standardType2;
	}

	public void setStandardType2(String standardType2) {
		this.standardType2 = standardType2;
	}

	public String getName3() {
		return name3;
	}

	public void setName3(String name3) {
		this.name3 = name3;
	}

	public String getSourceType3() {
		return sourceType3;
	}

	public void setSourceType3(String sourceType3) {
		this.sourceType3 = sourceType3;
	}

	public String getVisitType3() {
		return visitType3;
	}

	public void setVisitType3(String visitType3) {
		this.visitType3 = visitType3;
	}

	public BigDecimal getStructureScore() {
		return structureScore;
	}

	public void setStructureScore(BigDecimal structureScore) {
		this.structureScore = AssessmentUtils.decimalToDecimal(structureScore);
	}

	public BigDecimal getFullMark() {
		return fullMark;
	}

	public void setFullMark(BigDecimal fullMark) {
		this.fullMark = AssessmentUtils.decimalToDecimal(fullMark);
	}

	public BigDecimal getPercentScore() {
		return percentScore;
	}

	public void setPercentScore(BigDecimal percentScore) {
		this.percentScore = AssessmentUtils.decimalToDecimal(percentScore);
	}

	public BigDecimal getScore1() {
		return score1;
	}

	public void setScore1(BigDecimal score1) {
		this.score1 = AssessmentUtils.decimalToDecimal(score1);
	}

	public BigDecimal getPercentScore1() {
		return percentScore1;
	}

	public void setPercentScore1(BigDecimal percentScore1) {
		this.percentScore1 = AssessmentUtils.decimalToDecimal(percentScore1);
	}

	public BigDecimal getThirdScore1() {
		return thirdScore1;
	}

	public void setThirdScore1(BigDecimal thirdScore1) {
		this.thirdScore1 = AssessmentUtils.decimalToDecimal(thirdScore1);
	}

	public BigDecimal getFullMark1() {
		return fullMark1;
	}

	public void setFullMark1(BigDecimal fullMark1) {
		this.fullMark1 = AssessmentUtils.decimalToDecimal(fullMark1);
	}

	public BigDecimal getScore2() {
		return score2;
	}

	public void setScore2(BigDecimal score2) {
		this.score2 = AssessmentUtils.decimalToDecimal(score2);
	}

	public BigDecimal getPercentScore2() {
		return percentScore2;
	}

	public void setPercentScore2(BigDecimal percentScore2) {
		this.percentScore2 = AssessmentUtils.decimalToDecimal(percentScore2);
	}

	public BigDecimal getThirdScore2() {
		return thirdScore2;
	}

	public void setThirdScore2(BigDecimal thirdScore2) {
		this.thirdScore2 = AssessmentUtils.decimalToDecimal(thirdScore2);
	}

	public BigDecimal getFullMark2() {
		return fullMark2;
	}

	public void setFullMark2(BigDecimal fullMark2) {
		this.fullMark2 = AssessmentUtils.decimalToDecimal(fullMark2);
	}

	public BigDecimal getScore3() {
		return score3;
	}

	public void setScore3(BigDecimal score3) {
		this.score3 = score3;
	}

	public BigDecimal getPercentScore3() {
		return percentScore3;
	}

	public void setPercentScore3(BigDecimal percentScore3) {
		this.percentScore3 = percentScore3;
	}

	public BigDecimal getThirdScore3() {
		return thirdScore3;
	}

	public void setThirdScore3(BigDecimal thirdScore3) {
		this.thirdScore3 = thirdScore3;
	}

	public BigDecimal getFullMark3() {
		return fullMark3;
	}

	public void setFullMark3(BigDecimal fullMark3) {
		this.fullMark3 = fullMark3;
	}

	public String getStandardType3() {
		return standardType3;
	}

	public void setStandardType3(String standardType3) {
		this.standardType3 = standardType3;
	}

}